Theses variables are set, but never read. That's not very useful,
and gcc now warns about them by default (-Wunused-but-set-variable).
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4141>
FILE *file_ptr = NULL;
guchar tmp_buf[CR_INPUT_MEM_CHUNK_SIZE] = { 0 };
gulong nb_read = 0,
- len = 0,
- buf_size = 0;
+ len = 0;
gboolean loop = TRUE;
guchar *buf = NULL;
buf = g_realloc (buf, len + CR_INPUT_MEM_CHUNK_SIZE);
memcpy (buf + len, tmp_buf, nb_read);
len += nb_read;
- buf_size += CR_INPUT_MEM_CHUNK_SIZE;
}
}
CRTerm *expr = NULL,
*expr2 = NULL;
guchar next_byte = 0;
- gulong nb_terms = 0;
g_return_val_if_fail (a_this && PRIVATE (a_this)
&& a_expr, CR_BAD_PARAM_ERROR);
1, &next_byte);
if (status != CR_OK) {
if (status == CR_END_OF_INPUT_ERROR) {
- /*
- if (!nb_terms)
- {
- goto error ;
- }
- */
status = CR_OK;
break;
} else {
expr = cr_term_append_term (expr, expr2);
expr2 = NULL;
operator = 0;
- nb_terms++;
}
if (status == CR_OK) {